const userModules={
    state:{
        userName:"admin"
    },
    getters:{
        updateUsername(state){
            return state.userName+"666"
        }
    },
    mutations: {
        setUsername(state,payload){
            console.log(state,"state");
            console.log(payload,"payload");
            state.userName=payload
        }
    },
    actions: {
        
    },
}
export default userModules